package com.jueming.miser.auth.feign;

import com.jueming.miser.auth.to.MiserUserTo;
import com.jueming.miser.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("miser-user")
public interface UserFeignService {
    @RequestMapping("/user/miseruser/register")
    R register(@RequestBody MiserUserTo to);

    @RequestMapping("/user/miseruser/login")
    R login(@RequestBody MiserUserTo to);
}
